spin entry should be a child of spin context
authorCaolán McNamara <caolanm@redhat.com>
Thu, 17 Nov 2016 10:04:29 +0000 (10:04 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Nov 2016 10:55:20 +0000 (05:55 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=774609

demos/gtk-demo/foreigndrawing.c

index 11b8b44068b2c8880dd13e875d76e8933de5c360..005eb19db80c75f1920b979468526da5dbe13474 100644 (file)
@@ -836,7 +836,7 @@ draw_spinbutton (GtkWidget *widget,
 
   /* This information is taken from the GtkSpinButton docs, see "CSS nodes" */
   spin_context = get_style (NULL, "spinbutton.horizontal:focus");
-  entry_context = get_style (NULL, "entry:focus");
+  entry_context = get_style (spin_context, "entry:focus");
   up_context = get_style (spin_context, "button.up:focus:active");
   down_context = get_style (spin_context, "button.down:focus");